package com.learnyou.server.xingzuo.dto.paramDTO;

import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.Example;
import io.swagger.annotations.ExtensionProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;
import java.util.Date;
import java.util.List;

@Data
public class CourseScheduleParamDTO {
    @NotEmpty(message = "计划名称不能为空")
    @ApiModelProperty(value = "计划名称")
    private String scheduleName;

//    @NotEmpty(message = "计划开始的时间不能为空")
//    @Pattern(regexp = "^([0-1]{1}[0-9]|2[0-3]):[0-5][0-9]$", message = "时间需要符合HH:MM格式")
//    @ApiModelProperty(value = "计划开始的时间")
//    private String scheduleStartTime;
//
//    @NotEmpty(message = "计划结束的时间不能为空")
//    @Pattern(regexp = "^([0-1]{1}[0-9]|2[0-3]):[0-5][0-9]$", message = "时间需要符合HH:MM格式")
//    @ApiModelProperty(value = "计划结束的时间")
//    private String scheduleEndTime;
//
//    @Size(min = 1, message = "每周至少需要有一天执行该计划")
//    @ApiModelProperty(value = "上课周期, 周几上课的list列表")
//    private List<Integer> scheduleWeekList;

    @Size(min = 1, message = "上课时间安排不能为空")
    @ApiModelProperty(value = "上课时间安排")
    private List<String> scheduleWeekTimes;

    @ApiModelProperty(value = "课程计划描述")
    private String scheduleRemark;

    @NotNull(message = "课程计划开启日期不能为空")
    @ApiModelProperty(value = "课程计划开启日期, YYYY-MM-dd")
    private Date scheduleStartDate;
}
